//
//  BaseViewController+LoginFunction.m
//  DaMaoMall
//
//  Created by HXHL-wally on 16/7/20.
//  Copyright © 2016年 daMao-wally. All rights reserved.
//

#import "BaseViewController+LoginFunction.h"
#import "Keychain.h"
#import "LoginViewController.h"

@implementation BaseViewController (LoginFunction)


- (BOOL)checkIsLogin
{
    Account * account = [DMAccountTool account];
    if (account) {
    }else{
        LoginViewController *loginVC = [[LoginViewController alloc] init];
        UINavigationController * nav = [[UINavigationController alloc]initWithRootViewController:loginVC];
        [self presentViewController:nav animated:YES completion:^{
            DMLog(@"模态成功了");
        }];
        return NO;
    }
    return YES;
}

@end
